import i18n from '@src/locales';
import FormRelatedSetting from "./FormRelatedSetting.vue";
import FormRelatedPreview from "./FormRelatedPreview.vue";

// 采用element-ui的select组件，不支持下拉加载更新，不利于后期需求拓展 (暂弃用)
// import FormRelated from './FormRelated.vue';  
import FormRelated from "./FormRelatedV2.vue";

import ExtendSearch from "./extend/ExtendSearch.vue";
import UsualSelect from "./extend/UsualSelect.vue";
import ProductCatalogIdSetting from './extend/ProductCatalogIdSetting.vue';


let FormRelatedTaskField = {
  formType: "related_catalog", // 字段类型
  name: i18n.t('common.form.type.related_catalog'),
  isSystem: 0,
  component: {
    setting: FormRelatedSetting,
    preview: FormRelatedPreview,
    build: FormRelated,
    extend: {
      "related_catalog_search": ExtendSearch,
      'product_catalogId_setting':ProductCatalogIdSetting,
      'usual_select':UsualSelect
    }
  }
};

export default FormRelatedTaskField;
